# -*- coding: utf-8 -*-

from django.conf.urls.defaults import *

from piston.authentication import HttpBasicAuthentication
from piston.resource import Resource

from fluffyprovider.api.handlers import *

remote_file_handler = Resource(RemoteFileHandler)
remote_file_handler.csrf_exempt = getattr(remote_file_handler.handler, 'csrf_exempt', True)

urlpatterns = patterns('',
    url(r'get_file/$', remote_file_handler, name='get_file'),
)
